import request from './request';
import { GET, POST } from './http';

export async function login(data: User.Login): Promise<any> {
  return request('Home/Login/go_login', POST, '', data);
}

export async function currentUser(): Promise<any> {
  return request('Home/AdminUser/get_user_info', POST, '');
}

export async function outLogin(): Promise<any> {
  return request('Home/Login/logout', GET);
}

export async function getFakeCaptcha(data: any): Promise<any> {
  return request('Home/Login/verify', POST, '', data);
}
